import axios from "../utils/http";

const Addmenu ={
    state:()=>({
        

    }),
    mutations:{
        AddmenuMutations(state,odl){

        }
    },
    actions:{
        AddmenuActions(context){
            axios.post('/menuadd').then(res=>{
                if(res.code == 403){
                    localStorage.removeItem('log_list')
                    window.location.href = "/#/login"
                   
                }else{
                    context.commie('AddmenuMutations',res.list) 
                }
            }
                
              
                
            )
        }

    }

}
export default  Addmenu